<?php 
//引进配置信息
include 'include/init.php';
//引入数据库配置信息
include 'include/mysql.config.php';
//引入公共函数
include 'include/common.fun.php';
//公共数据
include 'data/common_data.php';
//资讯中心的详细页

if(isset($_GET['id'])&& $_GET['id']>0){
	$id = $_GET['id'];
}else{
	alert('非法访问','index.php');
	exit;
}
$sql = "SELECT art_title,art_addtime,art_content FROM wd_article WHERE art_id=$id";
$news = $db->getOne($sql);
if(!$news){
	alert('非法访问','index.php');
	exit;
}
// print_r($news);

//加载视图页面
include 'view/news_detail.php';

